﻿using System;
using System.Collections.Generic;
using System.Linq;
using ExpenseSystem.Common;
using ExpenseSystem.Fether;
using ExpenseSystem.Lor;
using ExpenseSystem.Model;

namespace ExpenseSystem.Fether
{
    public class RoleCmdFetcher:SystemFetcher<RoleCmdModel>
    {
        public IList<RoleCmdModel> ListByModule(long module,out string message,out int rows)
        {
            return List( OrderBy.GetDefault(), Limit.GetDefault(), out message, out rows, Restrain.Eq("ModuleId", module));
        }
    }
}
